home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000824-20010305
/
000165_news@columbia.edu _Fri Dec 29 15:42:36 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
1KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id PAA17125
for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 29 Dec 2000 15:42:36 -0500 (EST)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA15417
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 29 Dec 2000 15:42:35 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id PAA15078
for kermit.misc@watsun.cc.columbia.edu; Fri, 29 Dec 2000 15:42:08 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: dmf@cs.uchicago.edu (Derek M. Flynn)
Subject: Re: Converting struct tm to time_t
Message-ID: <slrn94ptmd.abl.dmf@gargoyle.cs.uchicago.edu>
Organization: The University of Chicago
Date: Fri, 29 Dec 2000 20:40:39 GMT
To: kermit.misc@columbia.edu
Andrew Gierth wrote:
> at least some systems have a timegm() function which is the UTC
> equivalent of mktime(). For those that don't, the straightforward
> calculation method is probably sufficient, though an alternative
> might be to do putenv("TZ=GMT0"); and then use mktime()....
Don't forget to call tzset() after putenv and before mktime